<?php

return [
    [
        'name'    => '__tips__',
        'title'   => '温馨提示',
        'type'    => 'string',
        'content' => [],
        'value'   => '1. 发送邮件通知请先于：系统配置->邮件配置->配置好发件相关信息并发送测试邮件<br>2. 负载分配所有工程师：优先分配给接单量少的工程师<br>3. 技能分配：将工单按照`工单类别`的工程师设置，分配给对应的专业解决人员<br>4.若需开启短信通知，请参考<a target="_blank" href="https://doc.fastadmin.net/workorder/459.html">文档</a>进行短信模板的申请和配置',
        'rule'    => '',
        'msg'     => '',
        'tip'     => '',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'user_urging',
        'title'   => '用户催办',
        'type'    => 'radio',
        'content' => [
            '不允许',
            '允许',
        ],
        'value'   => '1',
        'rule'    => '',
        'tip'     => '允许时，用户可催促工程师回复',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'engineer_close',
        'title'   => '工程师关闭工单',
        'type'    => 'radio',
        'content' => [
            '不允许',
            '允许',
        ],
        'value'   => '1',
        'rule'    => '',
        'tip'     => '允许时，工程师可自行关闭工单',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'urging_rate',
        'title'   => '最大催办频率(分钟)',
        'type'    => 'number',
        'content' => [],
        'value'   => '30',
        'rule'    => '',
        'tip'     => '工程师未回复时，每N分钟可催办一次',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'auto_close',
        'title'   => '工单自动关闭(小时)',
        'type'    => 'number',
        'content' => [],
        'value'   => '72',
        'rule'    => 'required',
        'tip'     => 'N小时用户无回复,自动关闭工单(待评价)',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'distribution_type',
        'title'   => '工单分配方式',
        'type'    => 'radio',
        'content' => [
            '循环分配所有工程师',
            '负载分配所有工程师',
            '技能分配-循环',
            '技能分配-负载',
        ],
        'value'   => '0',
        'rule'    => '',
        'tip'     => '新工单分配工程师的方式',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'notice_mail',
        'title'   => '发送通知邮件',
        'type'    => 'checkbox',
        'content' => [
            'user_order_handle'  => '至用户->工单正在处理',
            'user_got_reply'     => '至用户->工单收到回复',
            'engineer_new_order' => '至工程师->新工单',
            'engineer_got_reply' => '至工程师->工单收到回复',
            'engineer_urging'    => '至工程师->用户催办',
        ],
        'value'   => 'user_order_handle,user_got_reply,engineer_new_order,engineer_got_reply,engineer_urging',
        'rule'    => '',
        'tip'     => '这些事件发生时,发送邮件给用户/工程师',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'notice_sms',
        'title'   => '发送通知短信',
        'type'    => 'checkbox',
        'content' => [
            'user_order_handle'  => '至用户->工单正在处理',
            'user_got_reply'     => '至用户->工单收到回复',
            'engineer_new_order' => '至工程师->新工单',
            'engineer_got_reply' => '至工程师->工单收到回复',
            'engineer_urging'    => '至工程师->用户催办',
        ],
        'value'   => '',
        'rule'    => '',
        'tip'     => '这些事件发生时,发送短信给用户/工程师',
        'ok'      => '',
        'extend'  => '',
    ],
    [
        'name'    => 'show_engineer_info',
        'title'   => '工程师资料显示',
        'type'    => 'checkbox',
        'content' => [
            'all_order_number' => '处理工单数',
            'wx'               => '微信号',
            'qq'               => 'QQ号',
            'mobile'           => '手机号',
            'email'            => '邮箱',
        ],
        'value'   => 'all_order_number,qq,email',
        'rule'    => '',
        'tip'     => '用户可查看到的工程师资料',
        'ok'      => '',
        'extend'  => '',
    ],
];
